﻿using System.Collections.Generic;

namespace FPSO.Models.Constant
{
    public static class TaskResultConstant
    {
        /// <summary>
        /// 默认值
        /// </summary>
        public static readonly int DEFAULT_ID = 0;
        /// <summary>
        /// 未执行
        /// </summary>
        public static readonly int UNEXEC_ID = 0;
        /// <summary>
        /// 正在执行
        /// </summary>
        public static readonly int EXECING_ID = 1;
        /// <summary>
        /// 执行完成
        /// </summary>
        public static readonly int COMPLATE_ID = 2;
        /// <summary>
        /// 执行失败
        /// </summary>
        public static readonly int FAILED_ID = 3;

        public static readonly string UNEXEC_NAME = "未执行";
        public static readonly string EXECING_NAME = "正在执行";
        public static readonly string COMPLATE_NAME = "执行完成";
        public static readonly string FAILED_NAME = "执行失败";

        private static readonly Dictionary<int, string> ResultDic;
        static TaskResultConstant()
        {
            ResultDic = new Dictionary<int, string>();
            ResultDic.Add(UNEXEC_ID, UNEXEC_NAME);
        }
    }
}
